﻿// 1.1.4.08. Write a program that prints the greater of five numbers.

using System;

class MaxOfFiveNumbers
{
    static void Main()
    {
        double firstNum = double.Parse(Console.ReadLine());
        double secondNum = double.Parse(Console.ReadLine());
        double thirdNum = double.Parse(Console.ReadLine());
        double fourthNum = double.Parse(Console.ReadLine());
        double fifthNum = double.Parse(Console.ReadLine());
        Console.WriteLine(Math.Max(Math.Max(Math.Max(Math.Max(firstNum, secondNum), thirdNum), fourthNum), fifthNum));
    }
}